import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    name: "Home",
    component: () => import("../views/home/index.vue"),
  },
  {
    path: "/about",
    name: "About",
    component: () => import("../views/about/index.vue"),
  },
  {
    path: "/counter",
    name: "Counter",
    component: () => import("../views/counter/index.vue"),
  },
];

export default routes;

export function createMicroRouter(base) {
  return createRouter({
    history: createWebHistory(base),
    routes,
  });
}
